home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / ImageWriter--DTP renamer / ImageWriter.make < prev    next >
Encoding:
Text File  |  1996-06-15  |  5.4 KB  |  166 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        ImageWriter.make
  3. #
  4. #    Contains:    Makefile for the sample ImageWriter II driver.
  5. #
  6. #    Copyright:    © 1983-1994 by Apple Computer, Inc., all rights reserved.
  7. #
  8. #    Change History (most recent first):
  9. #
  10. #                 6/14/96    cn        Updated to support MPW Pro #19.
  11. #                 8/26/94    dmh        Finalized.
  12. #                 3/22/94    dmh        Modified for the b4 seed.
  13. #                12/18/93    dmh        Modified for the b3 seed.
  14. #                 9/12/93    dmh        Modified for the b2 seed.
  15. #                 4/26/93    dmh        Modified for the b1 seed.
  16. #                 2/04/93    dmh        Modified for the a5 seed.
  17. #         <5>    10/22/92    DB        Added changes for version control
  18. #
  19. #
  20.  
  21. #======= Point these variables to your interface and library directories =======
  22.  
  23. GXLibrariesSources            =    {MPW}GXLibraries:
  24. GXCompatibilityInterfaces    =    {MPW}GX Compatibility Interfaces:
  25.  
  26. #========== Directories Containing Source and Object Files ==========
  27.  
  28. ObjDir                    =    :Objects:
  29. SrcDir                    =    
  30. DestDir                    =    
  31.  
  32. #========== Compiler Options ==========
  33.  
  34. AsmOptions                =    -case obj
  35. RezOptions                =    -d SystemSevenOrLater=1 -i "{Rincludes}"
  36. COptions                =    -d applec -b2 -i "{CIncludes}" -i "{GXLibrariesSources}" -i "{GXCompatibilityInterfaces}"
  37. LinkOptions                =    -map -ra =resSysHeap,resPurgeable
  38.  
  39. DriverName         = ImageWriter
  40. DriverType         = 'pdvr'
  41. DriverCreator     = 'scI1'
  42. NewSegID        = 0
  43. OldSegID        = 1
  44.  
  45. # Compile and assemble statements
  46. "{ObjDir}"OldApp.c.o ƒƒ "{SrcDir}"OldApp.c "{SrcDir}"CommonDefines.h
  47.     SC {COptions} -o "{ObjDir}" "{SrcDir}"OldApp.c
  48.  
  49. "{ObjDir}"OldApp.a.o    ƒ     "{SrcDir}"OldApp.a
  50.     Asm {AsmOptions} {MakeJumpTable} "{SrcDir}"OldApp.a -o "{ObjDir}"
  51.  
  52. "{ObjDir}"NewApp.c.o    ƒ "{SrcDir}"NewApp.c "{SrcDir}"CommonDefines.h
  53.     SC {COptions} -o "{ObjDir}" "{SrcDir}"NewApp.c
  54.  
  55. "{ObjDir}"NewApp.a.o    ƒ     "{SrcDir}"NewApp.a
  56.     Asm {AsmOptions} {MakeJumpTable} "{SrcDir}"NewApp.a -o "{ObjDir}"
  57.  
  58. "{ObjDir}"ChooserSupport.c.o    ƒ "{SrcDir}"ChooserSupport.c "{SrcDir}"CommonDefines.h
  59.     SC {COptions} -o "{ObjDir}" "{SrcDir}"ChooserSupport.c
  60.  
  61. "{ObjDir}"ChooserSupport.a.o    ƒ     "{SrcDir}"ChooserSupport.a
  62.     Asm {AsmOptions} {MakeJumpTable} "{SrcDir}"ChooserSupport.a -o "{ObjDir}"
  63.  
  64. # Link and Rez statements
  65. "{DestDir}{DriverName}" ƒƒ "{SrcDir}"OldApp.r "{SrcDir}"CommonDefines.h
  66.     Rez {RezOptions} -append -o "{DestDir}{DriverName}" "{SrcDir}"OldApp.r
  67.     SetFile -a Bi -t {DriverType} -c {DriverCreator} "{DestDir}{DriverName}"
  68.         
  69. "{DestDir}{DriverName}" ƒƒ "{ObjDir}"OldApp.c.o
  70.     SetFile -a Bi -t {DriverType} -c {DriverCreator} "{DestDir}{DriverName}"
  71.  
  72. "{ObjDir}TextLibrary.c.o"        ƒ "{GXLibrariesSources}TextLibrary.c"
  73.     SC {COptions} -o "{ObjDir}" "{GXLibrariesSources}TextLibrary.c"
  74.  
  75. "{ObjDir}PictureLibrary.c.o"    ƒ "{GXLibrariesSources}PictureLibrary.c"
  76.     SC {COptions} -o "{ObjDir}" "{GXLibrariesSources}PictureLibrary.c"
  77.  
  78. "{ObjDir}FontLibrary.c.o"        ƒ "{GXLibrariesSources}FontLibrary.c"
  79.     SC {COptions} -o "{ObjDir}" "{GXLibrariesSources}FontLibrary.c"
  80.  
  81. "{ObjDir}ColorLibrary.c.o"        ƒ "{GXLibrariesSources}ColorLibrary.c"
  82.     SC {COptions} -o "{ObjDir}" "{GXLibrariesSources}ColorLibrary.c"
  83.  
  84. "{ObjDir}GraphicsLibrary.c.o"    ƒ "{GXLibrariesSources}GraphicsLibrary.c"
  85.     SC {COptions} -o "{ObjDir}" "{GXLibrariesSources}GraphicsLibrary.c"
  86.  
  87. "{DestDir}{DriverName}" ƒƒ "{SrcDir}"NewApp.r "{SrcDir}"CommonDefines.h
  88.     Rez {RezOptions} -append -o "{DestDir}{DriverName}" "{SrcDir}"NewApp.r
  89.     SetFile -a Bi -t {DriverType} -c {DriverCreator} "{DestDir}{DriverName}"
  90.  
  91. "{DestDir}{DriverName}" ƒƒ                         ∂
  92.     "{ObjDir}"NewApp.a.o                        ∂
  93.     "{ObjDir}"NewApp.c.o                        ∂
  94.         "{ObjDir}TextLibrary.c.o"                ∂
  95.         "{ObjDir}PictureLibrary.c.o"            ∂
  96.         "{ObjDir}FontLibrary.c.o"                ∂
  97.         "{ObjDir}ColorLibrary.c.o"                ∂
  98.         "{ObjDir}GraphicsLibrary.c.o"
  99.     Link                                        ∂
  100.         "{ObjDir}"NewApp.a.o                    ∂
  101.         "{ObjDir}"NewApp.c.o                    ∂
  102.                                                 ∂
  103.         "{ObjDir}TextLibrary.c.o"                ∂
  104.         "{ObjDir}PictureLibrary.c.o"            ∂
  105.         "{ObjDir}FontLibrary.c.o"                ∂
  106.         "{ObjDir}ColorLibrary.c.o"                ∂
  107.         "{ObjDir}GraphicsLibrary.c.o"            ∂
  108.                                                 ∂
  109.         "{Libraries}Interface.o"                 ∂
  110.         "{Libraries}MacRuntime.o"                 ∂
  111.         "{Libraries}IntEnv.o"                     ∂
  112.                                                 ∂
  113.         {LinkOptions}                            ∂
  114.         -rt {DriverType}={NewSegID}                ∂
  115.         -c {DriverCreator}                        ∂
  116.         -t {DriverType}                            ∂
  117.         -sg {DriverName}                        ∂
  118.         -m SD_JumpTable                            ∂
  119.         ∂
  120.         -o "{DestDir}{DriverName}"
  121.     SetFile -a Bi -t {DriverType} -c {DriverCreator} "{DestDir}{DriverName}"
  122.  
  123. "{DestDir}{DriverName}" ƒƒ                         ∂
  124.     "{ObjDir}"OldApp.a.o                        ∂
  125.     "{ObjDir}"OldApp.c.o
  126.     Link                                        ∂
  127.         "{ObjDir}"OldApp.a.o                    ∂
  128.         "{ObjDir}"OldApp.c.o                    ∂
  129.                                                 ∂
  130.         "{Libraries}MacRuntime.o"                 ∂
  131.         "{Libraries}IntEnv.o"                     ∂
  132.         "{Libraries}Interface.o"                 ∂
  133.                                                 ∂
  134.         {LinkOptions}                            ∂
  135.         -rt {DriverType}={OldSegID}                ∂
  136.         -c {DriverCreator}                        ∂
  137.         -t {DriverType}                            ∂
  138.         -sg {DriverName}                        ∂
  139.         -m SD_JumpTable                            ∂
  140.                                                 ∂
  141.         -o "{DestDir}{DriverName}"
  142.     SetFile -a Bi -t {DriverType} -c {DriverCreator} "{DestDir}{DriverName}"
  143.  
  144. "{DestDir}{DriverName}" ƒƒ "{SrcDir}"ChooserSupport.r "{SrcDir}"CommonDefines.h
  145.     Rez {RezOptions} -append -o "{DestDir}{DriverName}" "{SrcDir}"ChooserSupport.r
  146.     SetFile -a Bi -t {DriverType} -c {DriverCreator} "{DestDir}{DriverName}"
  147.  
  148. "{DestDir}{DriverName}" ƒƒ                         ∂
  149.     "{ObjDir}"ChooserSupport.a.o                ∂
  150.     "{ObjDir}"ChooserSupport.c.o
  151.     Link                                        ∂
  152.         "{ObjDir}"ChooserSupport.a.o            ∂
  153.         "{ObjDir}"ChooserSupport.c.o            ∂
  154.                                                 ∂
  155.         -ra =resSysHeap,resPurgeable            ∂
  156.         -rt PACK=-4096                            ∂
  157.         -sg PrintingPACK                        ∂
  158.         -m EntryPoint                            ∂
  159.                                                 ∂
  160.         -o {Targ}
  161.  
  162. "{DestDir}{DriverName}"    ƒƒ "{ObjDir}"ChooserSupport.c.o
  163.     Link -w -ra =resSysHeap,resPurgeable        ∂
  164.             -rt LDEF=-4096 -m LDEF -sg LDEF        ∂
  165.             -o {Targ} "{ObjDir}"ChooserSupport.c.o
  166.